www.gusucode.com > GUI界面实现语音增强matlab源码程序 > speech enhancement/separate_frame.m

    function  y=separate_frame(x,n,num)
%this function complete separate frame;at same time,add a hanning window to y;
%x is the sequence will be separate;
%n is used to show how many frame will be separated;  
%num is used to show this frame is which order frame;
window=hanning(n);
for i=1:n,
   y(i)=x(num*n+i)*window(i);
end;